<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			//生活中
			
			//游戏中
			
			//编程中
			
			var hero = new Object();
			
			hero.money = 10000;
			hero.level = 6;
			
			hero.attack = function () {
				console.log("攻击了水晶！");
			}
			console.log(hero);
			console.log(hero.money);
			console.log(hero.level);
			hero.attack();
		</script>
	</body>
</html>
